Skip to content

feat: add CLI install script for /install.sh - #674

Merged
soyuka merged 2 commits into
mainfrom
feat/cli-install-script
Jun 12, 2026
Merged

feat: add CLI install script for /install.sh#674
soyuka merged 2 commits into
mainfrom
feat/cli-install-script

Conversation

@soyuka

@soyuka soyuka commented Jun 11, 2026

Copy link
Copy Markdown
Member

What

Adds pwa/public/install.sh, served at https://api-platform.com/install.sh.

One-liner to install the API Platform CLI static binary:

curl -fsSL https://api-platform.com/install.sh | sh

Behaviour

  • Detects OS/arch via unameapi-platform-{linux,macos}-{x86_64,aarch64} (matches the CLI release artifacts).
  • Downloads from github.com/api-platform/api-platform/releases/latest — version-independent, always installs the newest release. No per-tag sync needed.
  • Verifies the published SHA-256 (<binary>.sha256) before chmod +x; aborts + deletes on mismatch or missing checksum.
  • Installs to $HOME/.api-platform (override BIN_DIR), no sudo. PATH hint printed.
  • Windows → message directs to WSL (hits the Linux branch).

Notes

  • Served statically from public/ — middleware only rewrites /docs* and /con*, so /install.sh passes through untouched.
  • Companion change in api-platform/api-platform publishes the .sha256 per binary in the release workflow.

soyuka added 2 commits June 11, 2026 21:39
One-liner `curl -fsSL https://api-platform.com/install.sh | sh` installs the API Platform CLI static binary (linux/macos, x86_64/aarch64) and verifies the published sha256 before exec.
~/.local/bin is on PATH by default on most systems (XDG/systemd
convention), so the binary is runnable immediately without a manual
PATH export.
@soyuka
soyuka merged commit 0540d98 into main Jun 12, 2026
3 checks passed
@soyuka
soyuka deleted the feat/cli-install-script branch June 12, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant